extends "../banrenma-3/banrenma-3.gd"


var baseId = ""
var upText1 = "装备改良额外赋予舰载机30%冷却加成"
var upText2 = "空域控制额外赋予舰载机15%冷却加成"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("为我方舰载机提供25%减伤", "空域控制")

var index = 0
func _upS():
	._upS()
	index += 1
	if index >= 2:
		index = 0
		for i in getAllChas(2):
			if i.isSumm and i.hasBuff("b_banrenma4") == null:
				castBuff(i, b_banrenma4.new())

class b_banrenma4:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_banrenma4"
		buffName = "空域控制"
	func _connect():
		masCha.connect("onHurt", self, "onHurt")
		if casCha.upgraded == 2:
			att.cd = 0.15
	func onHurt(atkInfo):
		atkInfo.hurtVal *= 0.75

